package com.example.administrator.broadnotifytest_102zzr;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.widget.Toast;

/**
 * Created by Administrator on 2017/5/3.
 */

public class MyReceiver extends BroadcastReceiver {
    private Context context;
    private String str="";
    @Override
    public void onReceive(Context context, Intent intent) {
        this.context=context;
        str=intent.getStringExtra("para");
        Toast.makeText(context,"接收到广播："+str,Toast.LENGTH_SHORT);
    }
}
